﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Principal.Master" AutoEventWireup="true" CodeBehind="Parroquias.aspx.cs" Inherits="SIP.Parroquias" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .textEntry
        {}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />
    <asp:Table ID="Table1" runat="server" CssClass="Tabla" Width="500" HorizontalAlign="Center">
        <asp:TableHeaderRow CssClass="TablaHeader">
            <asp:TableHeaderCell ColumnSpan="2">
                Mantenimiento de Parroquias
            </asp:TableHeaderCell>
        </asp:TableHeaderRow>
        <asp:TableRow Height="22px">
            <asp:TableCell>
            </asp:TableCell>
            <asp:TableCell>
            </asp:TableCell>
        </asp:TableRow>
         <asp:TableRow>
            <asp:TableCell>Código</asp:TableCell>
            <asp:TableCell>
                <asp:Label ID="lblcodigo" runat="server" Text=""></asp:Label>
            </asp:TableCell>
            </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>Diócesis</asp:TableCell>
            <asp:TableCell>
                <asp:DropDownList ID="ddlDiocesis" runat="server" CssClass="textEntry" Width="320px" ></asp:DropDownList>
            </asp:TableCell>
       </asp:TableRow>
       <asp:TableRow>
            <asp:TableCell>Provincia</asp:TableCell>
            <asp:TableCell>
               <asp:DropDownList ID="ddlProvincia" runat="server" CssClass="textEntry" 
                 Width="320px" AutoPostBack="True" onselectedindexchanged="ddlProvincia_SelectedIndexChanged" >
               </asp:DropDownList>
            </asp:TableCell>
       </asp:TableRow>
       <asp:TableRow>
            <asp:TableCell>Cantón</asp:TableCell>
            <asp:TableCell>
              <asp:DropDownList ID="ddlCanton" runat="server" CssClass="textEntry" 
                                Width="320px" AutoPostBack="True" ></asp:DropDownList>
            </asp:TableCell>
       </asp:TableRow>
       <asp:TableRow>
            <asp:TableCell>
                Descripción
            </asp:TableCell>
            <asp:TableCell>
                <asp:TextBox runat="server" ID="txtNombre" TextMode="MultiLine" Width="320" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" SkinID="Requerido"
                    ValidationGroup="v1" ControlToValidate="txtNombre"></asp:RequiredFieldValidator>
            </asp:TableCell></asp:TableRow><asp:TableRow>
            <asp:TableCell>
                Dirección
            </asp:TableCell><asp:TableCell>
                <asp:TextBox runat="server" ID="txtDireccion" TextMode="MultiLine" Width="320" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" SkinID="Requerido"
                    ValidationGroup="v1" ControlToValidate="txtDireccion"></asp:RequiredFieldValidator>
            </asp:TableCell></asp:TableRow><asp:TableRow>
            <asp:TableCell>
                Teléfono
            </asp:TableCell><asp:TableCell>
                <asp:TextBox runat="server" ID="txtTelefono" Width="320" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" SkinID="Requerido"
                    ValidationGroup="v1" ControlToValidate="txtTelefono"></asp:RequiredFieldValidator>
            </asp:TableCell></asp:TableRow><asp:TableRow>
            <asp:TableCell>
                Fax
            </asp:TableCell><asp:TableCell>
               <asp:TextBox runat="server" ID="txtFax" Width="320" />
<%--               <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" SkinID="Requerido"
                    ValidationGroup="v1" ControlToValidate="txtFax"></asp:RequiredFieldValidator>--%>
            </asp:TableCell></asp:TableRow><asp:TableRow>
            <asp:TableCell>
                Apartado
            </asp:TableCell><asp:TableCell>
               <asp:TextBox runat="server" ID="txtApartado" Width="320" />
<%--               <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" SkinID="Requerido"
                    ValidationGroup="v1" ControlToValidate="txtApartado"></asp:RequiredFieldValidator>--%>
            </asp:TableCell></asp:TableRow><asp:TableRow>
            <asp:TableCell>
                Correo electrónico
            </asp:TableCell><asp:TableCell>
               <asp:TextBox runat="server" ID="txtEmail" Width="320" />
<%--               <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" SkinID="Requerido"
                    ValidationGroup="v1" ControlToValidate="TxtEmail"></asp:RequiredFieldValidator>--%>
            </asp:TableCell></asp:TableRow><asp:TableRow>
            <asp:TableCell>
            Activo
            </asp:TableCell><asp:TableCell>
                <asp:CheckBox ID="chkactivo" runat="server" Checked="true" />
            </asp:TableCell></asp:TableRow><asp:TableRow>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
               
            </asp:TableCell><asp:TableCell>
                <asp:ImageButton ID="Crear_Usuario" runat="server" ImageUrl="~/Images/btn_salvar.gif"
                    OnClick="Registrar" ValidationGroup="v1" />
                &nbsp;&nbsp;&nbsp;
                <asp:ImageButton ID="btnCancelar" runat="server" ImageUrl="~/Images/btn_cancelar.gif"
                    OnClick="Cancelar" />
            </asp:TableCell></asp:TableRow><asp:TableFooterRow Height="22">
            <asp:TableCell>
                
            </asp:TableCell><asp:TableCell>
                
            </asp:TableCell></asp:TableFooterRow></asp:Table><%--                            <p>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate = "txtEmail" ValidationExpression="\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*"
                            ErrorMessage="Por favor digite una dirección de correo válida. Ejem. correo@domain.com" 
                            ValidationGroup="RegisterUserValidationGroup"></asp:RegularExpressionValidator>
--%></asp:Content>